package com.gzzyy.facerecognition.http

import com.gzzyy.facerecognition.bean.HumanDataBean
import com.gzzyy.facerecognition.bean.HumanInfoBean
import com.gzzyy.facerecognition.bean.UrlBean
import okhttp3.MultipartBody
import okhttp3.RequestBody
import retrofit2.http.*

interface HttpApi {

    @Multipart
    @Headers("urlname:image")
    @POST("api/Upload/image")
    suspend fun uploadImage(
        @Part file: MultipartBody.Part
    ): DataResponse<UrlBean?>

    @FormUrlEncoded
    @Headers("urlname:normal")
    @POST("/index/Index/rtMessage")
    suspend fun uploadUrl(@Field("image") image: String): DataResponse<HumanDataBean?>


}